<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<base href="<%=basePath%>">



<html>
<head>
    <title>Title</title>
</head>
<body>

<div style="border: 1px solid black; width: 620px;height: 600px; text-align: center; padding-top: 110px;page-break-after:always;">
    <p style="font-size: 40px">导</p>
<p style="font-size: 40px">检</p>

<p style="font-size: 40px">单</p>
</div>


<c:set var="a" value="1"></c:set>
<c:forEach var="sheet" items="${sheetList}">

<table border="" cellpadding="0" cellspacing="1"
       class="fkbody-rows" style="page-break-after:always;margin-top: 10px">
    <form action="Initialize/settlement?listingSerialNumber" id="tijiao" method="post" >
        <div style="margin-top: 50px">


            <div class="kf-fl">

                <ul>
                    <li STYLE="font-size: 15px;">
                        流水号:<SPAN>${listtingList.get(0).listingSerialNumber}</SPAN></li>

                </ul>

            </div>
            <div class="kf-fl">
                <ul>
                    <li STYLE="font-size: 15px;margin-left: 370px;margin-top: -35px; ">日期:<SPAN id="time"></SPAN></li>

                </ul>

            </div>
        </div>

        <tr class="fkbody-s" _rowindex="0">

            <td class="bodyrow-list" _columnindex="0" style="width: 25%">
                <div class="bodytxt"
                     style="overflow: hidden; text-align: center;">
                    姓名

                </div>

            </td>

            <td class="bodyrow-list" _columnindex="1" style="width: 25%">
                <div class="bodytxt" id="ming${a}"
                     style="overflow: hidden; text-align: center;"><input type="text" id=zichan${a}
                                                                          value="${sheet.sheetName}"
                                                                          STYLE="background: #f6fcff; width: 100%"/>
                </div>
            </td>

            <td class="bodyrow-list" _columnindex="2">
                <div class="bodytxt"
                     style="overflow: hidden; text-align: center;">性别
                </div>
            </td>


            <td class="bodyrow-list" _columnindex="4" style="width: 25%">
                <div class="bodytxt"
                     style="overflow: hidden; text-align: center;"><input type="text" id=zichan${a}
                                                                          value="${sheet.sheetSex}"
                                                                          STYLE="background: #f6fcff; width: 100%"/>
                </div>
            </td>


        </tr>

        <tr class="fkbody-s" _rowindex="0">
            <td class="bodyrow-list" _columnindex="2" style="width: 25%">
                <div class="bodytxt"
                     style="overflow: hidden; text-align: center;height: 30px">科室
                </div>
            </td>


            <td class="bodyrow-list" _columnindex="4">
                <div class="bodytxt"
                     style="overflow: hidden; text-align: center;"><input type="text" id=zichan${a}
                                                                          value="${sheet.sheetDepartment}"
                                                                          STYLE="background: #f6fcff; width: 100%;height: 30px"/>
                </div>
            </td>
            <td class="bodyrow-list" _columnindex="2" style="width: 25%">
                <div class="bodytxt"
                     style="overflow: hidden; text-align: center;">接收情况
                </div>
            </td>


            <td class="bodyrow-list" _columnindex="4">
                <div class="bodytxt" style="overflow: hidden; text-align: center;">
                    <input type="text" id=zichan${a} value="待接收" STYLE="background: #f6fcff; width: 100%"/></div>
            </td>


        </tr>

        <tr class="fkbody-s" _rowindex="0">
            <td class="bodyrow-list" _columnindex="4" colspan="2">
                <div class="bodytxt" style="overflow: hidden; text-align: center; height: 30px">检查项目</div>
            </td>
            <td class="bodyrow-list" _columnindex="4" colspan="2">
                <div class="bodytxt" style="overflow: hidden; text-align: center;height: 30px">
                    <input type="text" id=zichan${a} value="${sheet.sheetProject}"
                           STYLE="background: #f6fcff; width: 100%"/></div>
            </td>
        </tr>


        <tr class="fkbody-s" _rowindex="0">
            <td class="bodyrow-list" _columnindex="4" colspan="4">
                <div class="bodytxt" style="overflow: hidden; text-align: center;height: 30px">
                    检查结果
                </div>
            </td>

        </tr>

        <tr class="fkbody-s" _rowindex="0">
            <td class="bodyrow-list" _columnindex="4" colspan="4">
                <div class="bodytxt" style="overflow: hidden; text-align: center;height: 200px">
                </div>
            </td>

        </tr>


        <tr class="fkbody-s" _rowindex="0">
            <td class="bodyrow-list" _columnindex="4" colspan="4">
                <div class="bodytxt" style="overflow: hidden; text-align: center;height: 30px">
                    医生建议
                </div>
            </td>

        </tr>
        <tr class="fkbody-s" _rowindex="0">
            <td class="bodyrow-list" _columnindex="4" colspan="4">
                <div class="bodytxt" style="overflow: hidden; text-align: center;">
                    <textarea id="TextArea1" cols="" rows="" style="height: 300px;width: 100%"/></textarea> </div>
            </td>
        </tr>

        <tr class="fkbody-s" _rowindex="0">
            <td class="bodyrow-list" _columnindex="4" colspan="4" style="height: 50px">

            </td>
        </tr>
    </form>

</table>

    <c:set var="a" value="${a+1}"></c:set>

</c:forEach>
</body>
<script src="js\jquery.min.js"></script>
<script>

    var date = new Date();
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentDate = date.getFullYear() + "-" + month + "-" + strDate
        + " " + date.getHours() + ":" + date.getMinutes();
    $("#time").html(currentDate)

      window.print();
      window.location.href="sheet/printInput";


</script>
</html>
